import HomeView from '@/views/dashboard/index';

import Commission from '@/views/dashboard/commission';
import RealTimeStatistics from '@/views/dashboard/real-time-statistics';
import RegisterAnalysis from '@/views/dashboard/register-analysis';
import Retain from '@/views/dashboard/retain';

export default [
  {
    path: '/home',
    component: HomeView,
    children: [
      {
        path: '',
        name: 'home',
        redirect: {
          name: 'home-commission'
        },
      },
      {
        path: 'commission',
        name: 'home-commission',
        component: Commission
      },
      {
        path: 'real-time-statistics',
        name: 'home-real-time-statistics',
        component: RealTimeStatistics
      },
      {
        path: 'analysis',
        name: 'home-analysis',
        component: RegisterAnalysis
      },
      {
        path: 'retain',
        name: 'home-retain',
        component: Retain
      },
    ]
  },
  {
    path: ':anything',
    redirect: {
      name: 'home',
    }
  },
  {
    path: '*',
    redirect: {
      name: 'home',
    }
  }
];
